package com.example.parking.interfaces.http;

import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OpenApiConfig {
    @Bean
    public OpenAPI smartParkingOpenAPI() {
        return new OpenAPI()
                .info(new Info().title("Smart Parking API")
                        .description("城市智慧停车场系统 API 文档")
                        .version("v1"))
                .externalDocs(new ExternalDocumentation()
                        .description("Project Home")
                        .url("https://example.com"));
    }
}


